﻿<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
  <xs:element name="ItemsCollection">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Items" maxOccurs="1" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" minOccurs="0" name="Item">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs="1" />
                    <xs:element name="Url" type="xs:string" maxOccurs="1" minOccurs="0" />
                    <xs:element name="Cost" type="xs:unsignedShort" maxOccurs="1" minOccurs="0" />
                    <xs:element name="RecipeCost" type="xs:unsignedShort" maxOccurs="1" minOccurs="0" />
                    <xs:element name="Vendor" type="xs:string" maxOccurs="1" minOccurs="0" />
                    <xs:element name="Position" type="xs:unsignedByte" maxOccurs="1" minOccurs="0" />
                    <xs:element name="CreatedWithItems" maxOccurs="1" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="ItemHero" maxOccurs="unbounded" minOccurs="0">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Name" type="xs:string" maxOccurs="1" minOccurs="1"/>
                                <xs:element name="Amount" type="xs:unsignedByte" maxOccurs="1" minOccurs="1"/>
                                <xs:element minOccurs="0" maxOccurs="1" name="Replacement">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="Name" type="xs:string" minOccurs="1" maxOccurs="1"/>
                                      <xs:element name="Amount" type="xs:unsignedByte" maxOccurs="1" minOccurs="0"/>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element minOccurs="0" maxOccurs="1" name="AdditionalItemsAmount" type="xs:unsignedByte" />
                    <xs:element minOccurs="0" maxOccurs="1" name="AdditionalItems">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element maxOccurs="unbounded" minOccurs="0" name="ItemHero">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Name" type="xs:string" minOccurs="1" maxOccurs="1"/>
                                <xs:element name="Amount" type="xs:unsignedByte" minOccurs="1" maxOccurs="1"/>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xsd:schema>